#ifndef FILE_SAVE_XML_H
#define FILE_SAVE_XML_H
#include <QString>
#include <QGraphicsView>

class FileErrorException
{
public:
	FileErrorException (const QString &filename) : _filename(filename) {}
	QString filename() const { return _filename; }
private:
	QString _filename;
};

void file_save_xml (const QString &filename, QGraphicsView *view, bool isdraft=false);
QString create_scene_xml (QGraphicsScene *scene, bool isdraft=false, QGraphicsView *view = NULL);

#endif // FILE_SAVE_XML_H
